﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BTM_Client_DBwork.Exceptions
{
    class DBworkException : Exception
    {

        public enum ExceptionSubject
        {
            NullValue
        }

        public ExceptionSubject Subject { get; set; }

        public DBworkException(ExceptionSubject subject, string message) : base(message)
        {
            Subject = subject;
        }

        public static void Throw(ExceptionSubject subject, string message)
        {
            throw new DBworkException(subject, message);
        }

    }
}
